package cn.cvs.dao;

import cn.cvs.pojo.Storage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StorageMapper {
    List<Storage>list(Storage storage);
    List<Storage>getStorageSupName(Storage storage);
    List<Storage>getStorageById(Integer id);

    List<Storage>getStorageSupplierId(Integer supplierId);

    int add(Storage storage);
    int modify(@Param("srCode")String srCode,@Param("id")Integer id);
    int deleteByStorageId(@Param("id")Integer id);

    List<Storage>selectStorage(@Param("supplierId")Integer supplierId,@Param("payStatus")Integer payStatus,@Param("goodsName")String goodsName);

    /**
     * 3-上机-2
     * @param supCode
     * @param supName
     * @return
     */
    List<Storage>getLike(@Param("supCode")String supCode,@Param("supName")String supName);

    /**
     * 3-上机-4
     * @param id
     * @return
     */
    List<Storage>getstorageArray(Integer[] id);

    /**
     * 3-上机-5
     * @param id
     * @return
     */
    List<Storage>getStorageList(List<Integer>id);

    /**
     * 3-上机-8
     * @param pageBegin
     * @param pageSize
     * @return
     */
    List<Storage>getStorage(@Param("pageBegin")Integer pageBegin,@Param("pageSize")Integer pageSize);
}
